#!/bin/sh

echo ""
echo ""
echo ""
echo ""
echo " IMPORTANT !!!!! Read the content of this script before continuing. "
echo "   Before running this make sure you have at least 1G of free space."
echo "	 Also will download 90M+ of source files."
echo ""
echo ""
echo ""
echo ""
sleep 5

set -e

./bin/fetch-src
./bin/mk-dir-struct.sh
./bin/kernel/build-kernel
./bin/initrd/BUILD-ALL 
./bin/installcd/BUILD-ALL 
./bin/nemo_pkg/BUILD-ALL
#
./bin/initrd/find-libs-stripall
./bin/installcd/find-libs-stripall
./bin/initrd/make-initrd-pkg
./bin/installcd/make-initrd

echo ""
echo " !!!!!! DONE !!!!! DONE !!!!! DONE !!!!!! "
echo ""

# A) Make an standalone CD, ( all necesaries packages for installation )
#   Before calling this, you should call ./tools/cp-slackware-sets.sh.  
#
#   Will only work in this order as it uses 
#   ./initrd-tree.installcd/nemonico/files/packages/tagfiles/default
#   to know what to copy, so ./bin/installcd/BUILD-ALL, should have been called
#   before this.
#
# B) Make a netinstall CD, ( includes only the nemonico packages )
#   No other step is needed, just run ./bin/installcd/make-iso.
#
#
#
#./bin/installcd/make-iso

